package com.yxc.elasticsearchdemo.entiey;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import lombok.Data;

@Data
//@Document(indexName = "aptlog")
public class AptAlarm implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @Field(type = FieldType.Keyword)
    private String id;
    // 告警ID
    @Field(type = FieldType.Keyword)
    private String ALARM_ID;
    // 模型名称
    @Field(type = FieldType.Keyword)
    private String ALARM_R_NAME;
    // 事件分类
    @Field(type = FieldType.Keyword)
    private String ALARM_EVENT_TYPE;
    // 攻击者
    @Field(type = FieldType.Keyword)
    private String ALARM_S_IP;
    // 攻击者端口
    @Field(type = FieldType.Keyword)
    private String ALARM_S_PORT;
    // 受害者
    @Field(type = FieldType.Keyword)
    private String ALARM_D_IP;
    // 受害者端口
    @Field(type = FieldType.Keyword)
    private String ALARM_D_PORT;
    // 开始时间
    @Field(type = FieldType.Keyword)
    private String START_TIME;
    // 结束时间
    @Field(type = FieldType.Keyword)
    private String END_TIME;
    // 模型原因
    @Field(type = FieldType.Keyword)
    private String ALARM_REASON;
    // 确认状态
    @Field(type = FieldType.Keyword)
    private String CONFIRM_STATUS;
    // 攻击域名
    @Field(type = FieldType.Keyword)
    private String ALARM_DOMAIN;
    // IOC集合
    @Field(type = FieldType.Keyword)
    private String ALARM_IOC;
    // 组织编号
    @Field(type = FieldType.Keyword)
    private String ALARM_ORG;
    // 受害者备案单位
    @Field(type = FieldType.Keyword)
    private String ALARM_DIP_ORG;
    // 受害者行业
    @Field(type = FieldType.Keyword)
    private String ALARM_D_UNITCAT;
    // 研判状态
    @Field(type = FieldType.Keyword)
    private String readState;
    // 配置ID
    @Field(type = FieldType.Keyword)
    private String groupId;
}
